package personaltest;

public class ThreadEx5 {
	static long startTime = 0;
	
	public static void main(String[] args) {
		ThreadEx5_1 th1 = new ThreadEx5_1();
		startTime = System.currentTimeMillis();
		th1.start();
		
		for(int i=0; i<300; i++){
			System.out.print("-");
		}
		System.out.print("소요시간1 : "+(System.currentTimeMillis()-ThreadEx5.startTime));
	}
}



class ThreadEx5_1 extends Thread {
	public void run(){
		for(int i = 0; i<300; i++){
			System.out.print("|");
		}
		System.out.print("소요시간 2 : " + (System.currentTimeMillis()-ThreadEx5.startTime));
	}
}
